.photo-grid{
  max-width: 880px;
  margin: 34px auto 0;
  padding: 0 19px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, 282px);
  grid-template-rows: repeat(auto-fit, 362px);
  gap: 20px 17px;
  list-style: none;
  justify-content: center;
  box-sizing: border-box;
}

@media screen and (min-width:880px) {
  .photo-grid{
    padding: 0;
    margin: 51px auto 0;
  }
}

